<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>修改部门</title>
    <%@include file="/common/header.jspf"%>

    <script type="text/javascript" src="${ctx}/resources/js/permission/department/edit.js"></script>
</head>

<body>
<div class="form-wrap" >

    <form id="departmentForm" method="post">
        <input type="hidden" name="id" id="deptId" value="${department.id}"  />
        <div class="input-wrap">
            <label class="label-top">上级部门:</label>
            <input type="text" name="parentId" id="parentDepartmentId" value="${department.parentId}" style="width: 360px;"  title=""/>
        </div>
        <div class="input-wrap">
            <label class="label-top">部门编号:</label>
            <input class="easyui-textbox "  name="code" id="code" data-options="prompt:'填写部门编号',required:true,validType:'checkCode'" readonly value="${department.code}" style="width: 360px;" title=""/>
            <label style="display:none;color: red" id="code_err">当前部门编号已存在！</label>
        </div>
        <div class="input-wrap">
            <label class="label-top">部门名称:</label>
            <input class="easyui-textbox"  name="name" data-options="prompt:'填写部门名称',required:true" value="${department.name}" style="width: 360px;" title=""/>
        </div>
        <div class="input-wrap">
            <label class="label-top">排序号:</label>
            <input class="easyui-numberspinner"  name="sort" value="${department.sort}" style="width: 360px;" title=""/>
        </div>
        <div class="input-wrap">
            <label class="label-top">备注:</label>
            <input class="easyui-textbox " name="remarks" data-options="prompt:'填写备注',multiline:true" value="${department.remarks}" style="height:60px;width: 360px;" title=""/>
        </div>
    </form>
    <div class="form-button">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" id="departmentSave" >保存</a>
    </div>
</div>

</body>
</html>
